const app = getApp()

Page({
  data: {
    router:['switchTab', 'reLaunch', 'redirectTo', 'navigateTo', 'navigateBack']
  },
  onLoad() {
  
  },
  to(e){
    const type=e.currentTarget.dataset.type;
    wx[type]({
      url:'/test_page/index?id=10'
    })
  },
  toNext(){
    wx.navigateTo({
      url: '/test_page/index2',
    })
  }

})
